package com.chey.service.impl;

import com.chey.dao.UserDao;
import com.chey.domain.User;
import com.chey.service.UserService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao dao;
    @Override
    public User searchByName(String username) {
        return dao.selectByName(username);
    }
}
